package com.pgeg.registry;

import net.minecraft.block.CropBlock;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;

import static com.pgeg.listener.CropListener.RICE_CROP;
import static com.pgeg.listener.CropListener.TOMATO_CROP;
import static com.pgeg.util.Reference.MODID;

public class CropRegistry {

    public static void registerCrop() {
       initCrop("rice_crop", RICE_CROP);
       initCrop("tomato_crop", TOMATO_CROP);
    }

    private static void initCrop(String path, CropBlock block) {
        Registry.register(Registry.BLOCK, new Identifier(MODID, path), block);
    }
}
